package com.md.rps.service;

import com.md.rps.mybatis.interfaces.I_DEPT_LEVEL_2;
import com.md.rps.mybatis.model.DEPT_LEVEL_2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptLevel2Operator {
    @Autowired
    private I_DEPT_LEVEL_2 i_dept_level_2;

    public List<DEPT_LEVEL_2> getDeptList(){
        return  i_dept_level_2.getDeptList();
    }

    public int addDept(DEPT_LEVEL_2 dept_level_2){
        return i_dept_level_2.addDept(dept_level_2);
    }

    public int updateDept(DEPT_LEVEL_2 dept_level_2){
        return i_dept_level_2.updateDept(dept_level_2);
    }

    public int deleteDept(int id){
        return i_dept_level_2.deleteDept(id);
    }
}
